package top.jojoace.JPA.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.jojoace.JPA.model_DDL.BothWay_OneToMany.BW_School;
import top.jojoace.JPA.repository.BWSchoolRepository;

@Service
public class SchoolServiceImpl implements SchoolService{
    @Autowired
    private BWSchoolRepository BWSchoolRepository;

    @Override
    public BW_School selectSchoolById(int id) {
        return this.BWSchoolRepository.findOneById(id);
    }
}
